<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>伪类选择器否定伪类</title>
  <style>
    div>p:not(.no){
      color: red;
    }
    div>p:not([title]){
      color: skyblue;
    }

  </style>
</head>
<body>
  <div>
    <p>张三</p>
    <p>李四</p>
    <p>王五</p>
    <p>赵六</p>
    <p class="no" title="孙七">孙七</p>
    <p class="no" title="老八">老八</p>
  </div>
  
</body>
</html>